﻿namespace EyeOpen.Windows.Serialize
{
	using System.Windows.Forms;

	public partial class MainForm : Form
	{
		private readonly ControlSerializerDialog controlSerializerDialog;

		public MainForm(string fileName)
		{
			InitializeComponent();

			controlSerializerDialog = new ControlSerializerDialog(this, fileName);
		}

		private void SaveFile(object sender, System.EventArgs e)
		{
			controlSerializerDialog.Save();
		}

		private void LoadFile(object sender, System.EventArgs e)
		{
			controlSerializerDialog.Load();
		}
	}
}